package com.fqgj.sentry.policy.domain;

import com.fqgj.sentry.policy.enums.ExecutorTypeEnum;

/**
 * Created with IntelliJ IDEA.
 * User: yujianfu (mr.vencnet@gmail.com)
 * Date: 2017/7/18
 * Time: 下午12:54
 */
public class PolicyExecutor {

    private Long id;

    /**
     * 策略集ID
     */
    private Long policySetsId;
    /**
     * 类型：1 验证者，2 挑战者，3冠军者
     */
    private ExecutorTypeEnum executorTypeEnum;
    /**
     * 版本号
     */
    private Integer version;
    /**
     * 是否开启
     */
    private Integer isActive;
    /**
     * 来源的版本
     */
    private Integer copyVersion;
    /**
     * 执行比例
     */
    private Integer executePercent;
    /**
     * 说明
     */
    private String info;

    public ExecutorTypeEnum getExecutorTypeEnum() {
        return executorTypeEnum;
    }

    public PolicyExecutor setExecutorTypeEnum(ExecutorTypeEnum executorTypeEnum) {
        this.executorTypeEnum = executorTypeEnum;
        return this;
    }

    public Long getId() {
        return id;
    }

    public PolicyExecutor setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getPolicySetsId() {
        return policySetsId;
    }

    public PolicyExecutor setPolicySetsId(Long policySetsId) {
        this.policySetsId = policySetsId;
        return this;
    }

    public Integer getVersion() {
        return version;
    }

    public PolicyExecutor setVersion(Integer version) {
        this.version = version;
        return this;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public PolicyExecutor setIsActive(Integer isActive) {
        this.isActive = isActive;
        return this;
    }

    public Integer getCopyVersion() {
        return copyVersion;
    }

    public PolicyExecutor setCopyVersion(Integer copyVersion) {
        this.copyVersion = copyVersion;
        return this;
    }

    public Integer getExecutePercent() {
        return executePercent;
    }

    public PolicyExecutor setExecutePercent(Integer executePercent) {
        this.executePercent = executePercent;
        return this;
    }

    public String getInfo() {
        return info;
    }

    public PolicyExecutor setInfo(String info) {
        this.info = info;
        return this;
    }
}
